a = list(map(int, input().split()))
i = 0
j = len(a) - 1
for i in range(len(a)):
    for j in range(len(a)):
        if i < j and a[i] > a[j]:
            print(a[i], a[j])
